package ylg.cn.com.welecome.littlered.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import ylg.cn.com.welecome.R;
import ylg.cn.com.welecome.littlered.bean.TextBean;

/**
 * Created by Administrator on 2017/11/13.
 */

public  class LoginAnimTextBaseFragment extends Fragment {
    TextView tv_title;
    TextView tv_content;

    int mId ;
    String mTitle;
    String mContent;


    public static Fragment instance(TextBean tb){
        LoginAnimTextBaseFragment frament = new LoginAnimTextBaseFragment();

        return frament;
    }
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        ViewGroup view = (ViewGroup) inflater.inflate(R.layout.fragment_welcomanim_text, null);
        tv_title = (TextView)view.findViewById(R.id.tv_title);
        tv_content = (TextView)view.findViewById(R.id.tv_content);
        tv_title.setText(mTitle);
        tv_content.setText(mContent);
        return view;

    }
}
